public class BankStub extends Stub implements Bank{

	protected String serverAddress;
	protected int portNumber = 40308; 
	int id;

	public BankStub(int identifier,String serverAddress){
		id = identifier;
		this.serverAddress = serverAddress;
	}

	public Account getAccount(String name) {
		String response = sendAndGetResponseMessage("/BANK/" + id + "/ACCOUNTLOOKUP/" + name, true);
		return new AccountStub(Integer.parseInt(response), id, serverAddress);
    }
}


